home *** CD-ROM | disk | FTP | other *** search
- #define CURSES_LIBRARY 1
- #include <curses.h>
- #undef refresh
-
- #ifdef PDCDEBUG
- char *rcsid_refresh = "$Header: C:\CURSES\portable\RCS\refresh.c 2.1 1993/06/18 20:20:51 MH Rel MH $";
- #endif
-
-
-
-
- /*man-start*********************************************************************
-
- refresh() - refresh window
-
- X/Open Description:
- The routine wrefresh copies the named window to the physical
- terminal screen, taking into account what is already there in
- order to optimize cursor movement.
-
- The routine refresh does the same, using stdscr as a default
- screen.
-
- These routines must be called to get any output on the
- terminal, as other routines only manipulate data structures.
-
- Unless leaveok has been enabled, the physical cursor of the
- terminal is left at the location of the window's cursor.
-
- X/Open Return Value:
- The refresh() function returns OK on success and ERR on error.
-
- X/Open Errors:
- No errors are defined for this function.
-
- Portability:
- PDCurses int refresh( void );
- X/Open Dec '88 int refresh( void );
- BSD Curses int refresh( void );
- SYS V Curses int refresh( void );
-
- **man-end**********************************************************************/
-
- int refresh( void )
- {
- #ifdef PDCDEBUG
- if (trace_on) PDC_debug("refresh() - called\n");
- #endif
-
- return( wrefresh(stdscr) );
- }
-